package demo1.Ioc;

import java.util.Scanner;

public class Application {
    public static void main(String[] args) {
        // 测试
        Scanner in = new Scanner(System.in);
        // 先String、再int：否则会将空格作为String输入
        System.out.println("输入轮胎颜色:");
        String color = in.nextLine();
        System.out.println("输入轮胎尺寸：");
        int size = in.nextInt();

        Tire tire = new Tire(size,color);
        Bottom bottom = new Bottom(tire);
        Framework framework = new Framework(bottom);
        Car car = new Car(framework);
        car.init();
    }
}
